import request from '@/utils/request'
const adminController={
  getAdminAllLimit: function (){
    return request({
      url: '/adminController/getAdminAllLimit.jhtml',
      method: 'post'
    })
  },
  getList: function (data){
    return request({
      url: '/adminController/getQueryList.jhtml',
      method: 'post',
      data
    })
  },
  getUser:function(){
    return request({
      url:'adminController/getLoginAdminInfo.jhtml',
      method: 'get'
    })
  },
  add:function(data){
    return request({
      url: '/editAdminController/insertRecord.jhtml',
      method: 'post',
      data
    })
  },
  update:function(data){
    return request({
      url: '/editAdminController/updateRecord.jhtml',
      method: 'post',
      data
    })
  },
  updateState:function(data){
    return request({
      url: '/editAdminController/updateStatus.jhtml',
      method: 'post',
      data
    })
  },
  updatePWd:function(data){
    return request({
      url:'editAdminController/resetPwd.jhtml',
      method: 'post',
      data
    })
  },
  checkEamil:function(data){
    return request({
      url: '/editAdminController/checkEamil.jhtml',
      method: 'post',
      data
    })
  },
  checkTel:function(data){
    return request({
      url: '/editAdminController/checkTel.jhtml',
      method: 'post',
      data
    })
  },
  checkName:function(data){
    return request({
      url: '/editAdminController/checkName.jhtml',
      method: 'post',
      data
    })
  },



}
export default adminController
